home *** CD-ROM | disk | FTP | other *** search
- Path: gate.net!not-for-mail
- From: feathers@gate.net (Michael Feathers)
- Newsgroups: comp.lang.ada,comp.lang.c++,comp.lang.c,comp.lang.modula3,comp.lang.modula2,comp.lang.eiffel
- Subject: Re: Hungarian notation
- Date: 9 Jan 1996 07:43:09 -0500
- Organization: CyberGate, Inc.
- Message-ID: <4ctnst$egc@hopi.gate.net>
- References: <30C40F77.53B5@swsbbs.com> <marnoldDJEvtJ.1Lx@netcom.com> <4aleun$jlk@ns.RezoNet.NET> <marnoldDJMDBG.CFz@netcom.com> <4asnkr$7b0@solutions.solon.com> <4ath75$e7i@barnacle.iol.ie> <4b4kij$svt@news.microsoft.com> <dewar.819489496@schonberg> <4bd
- <4cne0e$1020@seminole.gate.net> <DKvrwL.5yu@irvine.com>
- NNTP-Posting-Host: hopi.gate.net
- X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
-
- Adam Beneschan (adam@irvine.com) wrote:
- : feathers@gate.net (Michael Feathers) writes:
- : >
- : > If anyone does not think that type is important information that ought
- : > to kept in mind for semantic purposes, just consider this: someone
- : > anonymously offers you sex. The type of person offering it should
- : > be important to you, unless you are bisexual, and even then you
- : > might like to know as some casting may be required. :-)
- : >
- : >
- : > -Mike (master of silly analogies)
- :
- : I agree with your last point--i.e. that this is a silly analogy. To
- : carry the silliness even further: you probably care what gender a
- : person is before you have sex with them, but if you're an employer
- : looking for someone to fill a position, you probably don't, or
- : shouldn't, care; all you're concerned with is what purpose you're
- : going to be using the person for.
-
- True enough, but remember that 'person' is a type also (or rather
- a class), and you wouldn't want to employ rocks or ball-point
- pens.
-
- In the presence of polymorphism, I could be happy that:
- Employ (persBetty)
- or
- Employ (femBetty)
-
- as long as I know that females are a subclass of persons.
- These class relationships are far easier to remember than
- the type of every variable in a program.
-
- : Now, which of these analogies corresponds more closely to how
- : variables in a program are used?
- :
- : (1) Using the variables for a purpose
- : (2) Having sex with the variables
-
- It depends on how much programming excites you.
-
- :-()
-
-
-